#include  <iostream>
using  namespace  std;
template<typename T>
class Compare
{
public:
    Compare(T a,T b);
    T Max();
private:
    T x,y;
};

template<typename T>
Compare<T>::Compare(T a,T b):x(a),y(b)
{
}
template<typename T>
T Compare<T>::Max()
{
    if(x>y)
        return x;
    else
        return y;
}

int main()
{
    Compare<int> obj1(6,9);
    Compare<double> obj2(63,9);
    cout<<obj1.Max()<<endl;
    cout<<obj2.Max()<<endl;
    return 0;
}